home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / contents / scripts / etc < prev    next >
Text File  |  1997-06-06  |  800b  |  38 lines

  1. ( chmod 751 root )
  2. if [ ! -r etc/passwd ]; then
  3.  cp etc/npasswd etc/passwd
  4. fi
  5. if [ ! -r etc/passwd.OLD ]; then
  6.  mv etc/npasswd etc/passwd.OLD
  7. else
  8.  rm etc/npasswd
  9. fi
  10. if [ ! -r etc/shadow ]; then
  11.  mv etc/nshadow etc/shadow
  12. else
  13.  rm etc/nshadow
  14. fi
  15. if [ ! -r etc/group ]; then
  16.  mv etc/ngroup etc/group
  17. else
  18.  rm etc/ngroup
  19. fi
  20. if [ ! -r etc/hosts ]; then
  21.  mv etc/hosts-incoming etc/hosts
  22. else
  23.  rm -f etc/hosts-incoming
  24. fi
  25. if [ ! -r etc/networks ]; then
  26.  mv etc/networks-incoming etc/networks
  27. else
  28.  rm -f etc/networks-incoming
  29. fi
  30. ( cd etc ; rm -rf wtmp )
  31. ( cd etc ; ln -sf  /var/log/wtmp wtmp )
  32. ( cd usr/etc ; rm -rf printcap )
  33. ( cd usr/etc ; ln -sf  /etc/printcap printcap )
  34. ( cd etc ; rm -rf utmp )
  35. ( cd etc ; ln -sf /var/log/utmp utmp )
  36. ( cd etc ; rm -rf issue.net )
  37. ( cd etc ; ln -sf issue issue.net )
  38.